// DwarfMgr.java // Stateless Session Bean Facade package dwarf; import javax.ejb.EJBObject; import java.rmi.RemoteException; import java.util.List; public interface DwarfMgr extends EJBObject { //-------------------------------------------------------------- // returns list of Dwarf Beans public List GetAll() throws RemoteException; //-------------------------------------------------------------- public Dwarf Get(int id) throws RemoteException; //-------------------------------------------------------------- public int Add(String dwarfName,int born,int homeId) throws RemoteException; //-------------------------------------------------------------- public void Update(int id, String dwarfName,int born,int homeId) throws RemoteException; }